home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / Makefile.in < prev    next >
Makefile  |  1997-02-06  |  3KB  |  134 lines

  1. # Makefile for `Wget' utility
  2. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #
  19. # Version: @VERSION@
  20. #
  21.  
  22. SHELL = /bin/sh
  23. @SET_MAKE@
  24.  
  25. srcdir = @srcdir@
  26. VPATH  = @srcdir@
  27.  
  28. #
  29. # User configuration section
  30. #
  31.  
  32. # Look at config.h to set up configuration and machine-dependent options
  33.  
  34. #
  35. # Install variables
  36. #
  37. prefix      = @prefix@
  38. exec_prefix = @exec_prefix@
  39. bindir      = @bindir@
  40. infodir     = @infodir@
  41. sysconfdir  = @sysconfdir@
  42. mandir      = @mandir@
  43. manext      = 1
  44.  
  45. CC = @CC@
  46. CFLAGS = @CFLAGS@
  47. CPPFLAGS = @CPPFLAGS@
  48. DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\"
  49. LIBS = @LIBS@
  50. LDFLAGS = @LDFLAGS@
  51.  
  52. #
  53. # End of user configuration section.  There should be no need to change
  54. # anything below this line.
  55. #
  56.  
  57. RM = rm -f
  58.  
  59. # flags passed to recursive makes in subdirectories
  60. MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
  61. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
  62. prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
  63. infodir='$(infodir)' mandir='$(mandir)' manext='$(manext)'
  64.  
  65. # subdirectories in the distribution
  66. SUBDIRS = src doc util
  67.  
  68. # default target
  69. all: Makefile $(SUBDIRS)
  70.  
  71. $(SUBDIRS): FORCE
  72.     cd $@ && $(MAKE) $(MAKEDEFS)
  73.  
  74. FORCE:
  75.  
  76. # install everything
  77. install: install.bin install.info install.man install.wgetrc
  78.  
  79. # install/uninstall the binary
  80. install.bin uninstall.bin:
  81.     cd src && $(MAKE) $(MAKEDEFS) $@
  82.  
  83. # install/uninstall the info/man pages
  84. install.info uninstall.info install.man uninstall.man install.wgetrc:
  85.     cd doc && $(MAKE) $(MAKEDEFS) $@
  86.  
  87. #
  88. # Cleanup dependencies
  89. #
  90.  
  91. clean:        clean-recursive        clean-top
  92. distclean:    distclean-recursive    distclean-top
  93. realclean:    realclean-recursive    realclean-top
  94.  
  95. clean-top:
  96.     $(RM) *~ *.bak
  97.  
  98. distclean-top: clean-top
  99.     $(RM) Makefile config.h config.status config.log config.cache
  100.  
  101. realclean-top: distclean-top
  102.  
  103. clean-recursive distclean-recursive realclean-recursive:
  104.     for subdir in $(SUBDIRS); do \
  105.        target=`echo $@ | sed s/-recursive//`; \
  106.        (cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
  107.     done
  108.  
  109. #
  110. # Dependencies for maintenance
  111. #
  112.  
  113. $(srcdir)/configure: configure.in aclocal.m4
  114.     cd $(srcdir) && autoconf
  115.  
  116. # autoheader might not change config.h.in, so touch a stamp file.
  117. $(srcdir)/config.h.in: stamp-h.in
  118. $(srcdir)/stamp-h.in: configure.in aclocal.m4
  119.     echo timestamp > $(srcdir)/stamp-h.in
  120.  
  121. config.h: stamp-h
  122. stamp-h: config.h.in config.status
  123.     ./config.status
  124.  
  125. Makefile: Makefile.in config.status
  126.     ./config.status
  127.  
  128. config.status: configure
  129.     ./config.status --recheck
  130.  
  131. # create tag files for Emacs
  132. TAGS:
  133.     cd src && $(MAKE) $@
  134.